package com.scedu.spring5.collectiontype;

import java.util.List;

public class StuListCourse {
    //List类型属性,值是对象
    private List<Course> courseList;

    public void setCourseList(List<Course> courseList) {
        this.courseList = courseList;
    }


    public void test(){
        for (Course course : courseList) {
            System.out.println(course.getCname());
        }
    }
}
